//IMPORT
import java.util.HashMap;
import com.cyberbotics.webots.controller.*;
//CLASS
public class my_robot extends Robot {

//ATTRIBUTES
private final int TIME_STEP = 32;
private HashMap<String, String> courants = new HashMap <String, String>();
private HashMap<String, Double> values = new HashMap<String, Double>();
private LED my_led;
private DistanceSensor distance_sensor;
private LightSensor light_sensor;
//CONSTRUCTOR
public my_robot() {
super();
my_led = this.getLED("my_led");
distance_sensor = this.getDistanceSensor("distance_sensor");
distance_sensor.enable(TIME_STEP);
light_sensor = this.getLightSensor("light_sensor");
light_sensor.enable(TIME_STEP);
courants.put("courir", "entry");
}

//METHODS
public static void main(String[] args) {
my_robot controller = new my_robot();
controller.run();
}

public void doArbiter(){
if(courir()) return;
}
public boolean courir(){
boolean inibit = false;
double value = 0.0;
String courant = courants.get("courir");
String self = "courir";
if(courant.equals("state2")){
}
courants.put("courir", courant);
values.put("courir", value);
return inibit;

}

//RUN
public void run() {

//Main control loop
while (step(TIME_STEP) != -1) {
values.put("distance_sensor", distance_sensor.getValue());
values.put("light_sensor", light_sensor.getValue());
doArbiter();
}
}
}
